package com.jsh.service.materials;

import com.jsh.base.BaseIService;
import com.jsh.model.po.Material;
import com.jsh.util.JshException;
import com.jsh.util.PageUtil;

import java.io.File;
import java.io.InputStream;

public interface MaterialIService extends BaseIService<Material>
{
    public void batchSetEnable(Boolean enable,String supplierIDs);

    public void findUnitName(PageUtil<Material> material, Long mId)throws JshException;

    public InputStream exmportExcel(String isAllPage,PageUtil<Material> pageUtil)throws JshException;

    public InputStream importExcel(File materialFile)throws JshException;
    
    // 对产品个仓库的库存进行增减
    /**
	 * 审核或者反审核产品入库、出库单的时候，对产品库存进行增减
	 * depotId仓库id；enable增减；mId产品id；store增减数量；
	 */
    public void batchStore(Long depotId , Boolean enable , Long mId , int store)throws JshException; 
}
